package apj.demo.service.impl;

import java.sql.SQLException;
import java.util.List;

import apj.demo.factory.DaoFactory;
import apj.demo.model.Bill;
import apj.demo.service.BillServiceDao;
/**
 * 账单实现操作方法类
 * */
public class BillServiceDaoImpl implements BillServiceDao {

	@Override
	public void save(Bill bill) throws SQLException {
		DaoFactory.getBillDaoImpl().save(bill);
	}

	@Override
	public List<Bill> findByAll() throws SQLException {
		return DaoFactory.getBillDaoImpl().findByAll();
	}

	@Override
	public Bill findById(int id) throws SQLException {
		return DaoFactory.getBillDaoImpl().findById(id);
	}

}
